$OpenBSD: patch-caca_caca_stubs_h,v 1.1 2014/07/13 15:10:33 espie Exp $
--- caca/caca_stubs.h.orig	Sun Jul 13 16:43:57 2014
+++ caca/caca_stubs.h	Sun Jul 13 16:45:02 2014
@@ -42,6 +42,10 @@ static inline int geterrno(void) { return errno; }
         /* Nothing to do */
 #   elif defined HAVE_ENDIAN_H
 #       include <endian.h>
+#         if !defined(__BYTE_ORDER)
+#           define __BYTE_ORDER BYTE_ORDER
+#           define __BIG_ENDIAN BIG_ENDIAN
+#         endif
 #   endif
 static inline uint16_t hton16(uint16_t x)
 {
